home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
9-Digit Zip Code Directory
/
9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO
/
z4src.zip
/
CLEVENT.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-02
|
2KB
|
79 lines
//----------------------------------------------------------------------------
// MODULE DESCRIPTION
//
// Module: clevent.hpp
// Title: C++ Class Libraries
// Notice: John M. Weeder
// Copyright (c) 1993. All rights reserved.
// This module contains proprietary information and should be
// treated as confidential.
//
//----------------------------------------------------------------------------
// MAINTENANCE HISTORY
//
// $Workfile$
// $Revision$
// $Author$
// $Date$
// $Log$
//
//----------------------------------------------------------------------------
// MODULE NARRATIVE
//
// This module contains code for the class CL_EVENT.
//
// The code in this module may be written in C++ or C.
//
// This module is portable to:
// DOS 3.X+
// MS Windows 3.X+
// OS/2 2.X+
// OS/2 2.0 PM
//
// The following compilers are supported:
// MSC 6.0A
// MSC/C++ 7.0
// Borland C++ 3.1 for DOS
// Borland C++ 1.0 for OS/2 2.X
//
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// Class CL_EVENT
//----------------------------------------------------------------------------
#define CL_EVENT_PARENT CL_OBJECT
class CLASSTYPE CL_EVENT : public CL_EVENT_PARENT
{
#if OS_OS2
HEV hev; // Event semaphore handle
BOOL fCreated; // Semaphore successfully created
#endif
public:
FN_M CL_EVENT();
FN_M CL_EVENT(RCCL_EVENT);
virtual FN_M ~CL_EVENT();
virtual BOOL FN_M Destroy(BOOL = TRUE);
virtual BOOL FN_M Initialize(SHORT = CL_INIT_ALL);
virtual BOOL FN_M IsError() const;
virtual BOOL FN_M IsValid() const;
RCCL_EVENT FN_M operator=(RCCL_EVENT);
BOOL FN_M Post();
BOOL FN_M Reset();
virtual BOOL FN_M Retrieve(PCSZ, PCSZ = NULL);
virtual BOOL FN_M Store(PCSZ, PCSZ = NULL);
BOOL FN_M Wait(ULONG = -1);
#if COMPILE_DEBUG
static VOID FN_M Print(PCCL_EVENT = NULL, PCSZ = NULL, SIZET = 0);
static BOOL FN_M Test(SHORT = 0);
#endif
protected:
private:
};
//----------------------------------------------------------------------------
//------------------------------- End of File --------------------------------
//----------------------------------------------------------------------------